<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css">
<link href="inside.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<title>尋屋診療室</title>
<script type="text/JavaScript">
function check_form()
{
	if(document.form1.name.value=='')
	{
		alert("請輸入姓名");
	    return (false);
	}    		
     if(document.form1.tel.value=="")
    {
        alert("請輸入電話號碼");
        return (false);
    }   	
	
	if(document.form1.email.value=="")
    {
        alert("請輸入E_mail");
        return (false);
    }
	if(document.form1.addr.value=="")
    {
        alert("請輸入居住地址");
        return (false);
    }  
	if(document.form1.type.value=="")
    {
        alert("請輸物件類型");
        return (false);
    }   
	
	if(document.form1.price.value=="")
    {
        alert("請輸入租金");
        return (false);
    } 	
	
	if(document.form1.demand.value=="")
    {
        alert("請輸您的需求");
        return (false);
    } 	
	  
}
</script>
<script Language="JavaScript">
function selects() 
{		
	var pro = document.form1.pro.value;
	$.ajax(
		{
			type: "GET",
			url: "selecthome.php",
			data: "id="+pro,
			success: function(msg)
			{ 
			 $("#test1").html(msg);;
			}
		}
	);
}
</script>
</head>

<body>
<div id="container">
<!--header-->
<{include file="./header.html"}>   
<!--header-->

<!--menu-->
<{include file="./menu.html"}> 
<!--menu-->

<div class="main2">
<table width="974" height="796" cellSpacing="0" cellPadding="0" align="center" background="images/mian_bg.gif" style="background-repeat:repeat-x">
  <tr>
    <td height="794" align="center" valign="top" ><table width="708" height="197" border="0" cellpadding="0" cellspacing="0"  style="margin-top:8px; ">
      <tr>
        <td height="190"><img src="siteadmin/upload/adv/<{$img}>" width="708" height="190"><input type="hidden" name="add" value="1"></td>
        </tr>
      
    </table>
      <table width="708" height="16" border="0" cellpadding="0" cellspacing="0" style="margin-top:12px;">
	   <form method="post" action="contact.php" name="form1" style="border:0" onSubmit="return check_form()">	    <tbody>
      <tr>
        <td><table width="708" height="16" border="0" cellpadding="0" cellspacing="0" background="images/goods_title_bg.gif">
            <tr>
              <td width="11"><img src="images/goods_title_left.gif" width="11" height="38"></td>
              <td width="548" style="color:#ffffff; font-weight:bold; font-size:14px">個人基本資料</td>
              <td width="63" style="color:#ffffff; font-weight:bold; font-size:14px">&nbsp;</td>
              <td width="61" style="color:#ffffff; font-weight:bold; font-size:14px">&nbsp;</td>
              <td width="25" align="right"><img src="images/goods_title_right.gif" width="11" height="38"></td>
            </tr>

          </table></td>
      </tr>
      <tr>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
          <tr>
            <td width="59" height="32" bgcolor="#FFFFFF"><br></td>
            <td width="74" bgcolor="#FFFFFF"><strong>姓名</strong></td>
            <td width="175" bgcolor="#FFFFFF" align="left"><label>
              <input type="text" name="name" maxlength="10" size="20"  class="kuang">
            </label></td>
            <td bgcolor="#FFFFFF"  align="left"><label>
              <input type="radio" name="sex" checked value="先生">
              先生 
              <input type="radio" name="sex" value="小姐">
            小姐</label></td>
            </tr>
          <tr>
            <td height="32" bgcolor="#F2F3F5">&nbsp;</td>
            <td height="32" bgcolor="#F2F3F5"><strong>聯絡電話</strong><br></td>
            <td height="32" colspan="2" bgcolor="#F2F3F5"  align="left"><input type="text" name="tel" maxlength="20"  class="kuang"></td>
          </tr>
          <tr>
            <td height="32" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="32" bgcolor="#FFFFFF"><strong>E - mail </strong></td>
            <td height="32" colspan="2" bgcolor="#FFFFFF"  align="left"><input type="text" name="email" maxlength="50"  class="kuang"></td>
          </tr>
          <tr>
            <td height="32" bgcolor="#F2F3F5">&nbsp;</td>
            <td height="32" bgcolor="#F2F3F5"><strong>目前居所</strong></td>
            <td height="32" colspan="2" bgcolor="#F2F3F5"  align="left"><input type="text" name="addr"  class="kuang"></td>
          </tr>
          <tr>
            <td height="10" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="10" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="10" colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
	  <tr>
        <td><table width="708" height="16" border="0" cellpadding="0" cellspacing="0" background="images/goods_title_bg.gif">
            <tr>
              <td width="11"><img src="images/goods_title_left.gif" width="11" height="38"></td>
              <td width="548" style="color:#ffffff; font-weight:bold; font-size:14px">個人尋屋（病歷）資料</td>
              <td width="63" style="color:#ffffff; font-weight:bold; font-size:14px">&nbsp;</td>
              <td width="61" style="color:#ffffff; font-weight:bold; font-size:14px">&nbsp;</td>
              <td width="25" align="right"><img src="images/goods_title_right.gif" width="11" height="38"></td>
            </tr>

          </table></td>
      </tr>
	  <tr>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="59" height="32" bgcolor="#FFFFFF">&nbsp;</td>
            <td width="74" height="32" bgcolor="#FFFFFF" ><strong>縣市 </strong><br></td>
            <td width="575" height="32" bgcolor="#FFFFFF"  align="left">
            <select name="pro" size="1" style="width:120px;"  onChange="selects()">
                  <option value="1">縣市</option>
                  <{section name=key loop=$row4 start=0 max=100 step=1}>
				     <option value="<{$row4[key].cate_id}>"><{$row4[key].zh_cate_title}></option>
			       <{/section}>
                </select></td>
          </tr>
          <tr>
            <td height="32" bgcolor="#F2F3F5">&nbsp;</td>
            <td height="32" bgcolor="#F2F3F5"><strong>區域</strong></td>
            <td height="32" bgcolor="#F2F3F5"  align="left">
            <span id="test1">
              <select name="city" style="width:120px;">
			   <option value="">鄉鎮</option>
              </select>  
             </span></td>
            </tr>
          <tr>
            <td height="32" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="32" bgcolor="#FFFFFF"><strong>物件類型</strong><br></td>
            <td height="32" bgcolor="#FFFFFF"  align="left">
           		<{$typexx}>
         </td>
          </tr>
          <tr>
            <td height="32" bgcolor="#F2F3F5">&nbsp;</td>
            <td height="32" bgcolor="#F2F3F5"><strong>租金</strong><br></td>
            <td height="32" bgcolor="#F2F3F5" align="left" ><input type="text" name="price"  class="kuang"><input type="hidden" name="add" value="1" > </td>
          </tr>
          <tr>
            <td height="133">&nbsp;</td>
            <td height="133"><strong>需求</strong></td>
            <td height="133" align="left"><label>
              <textarea name="demand" style="width:560px; height:120px;"  class="kuang"></textarea>
            </label></td>
          </tr>
          <tr>
            <td height="74">&nbsp;</td>
            <td height="74">&nbsp;</td>
            <td height="74" align="center">
              <input type="submit" name="Submit" value=" " style="background:url(images/submit_2.gif); width:92px; height:55px; background-repeat:no-repeat; border:none">            </td>
          </tr>
        </table></td>
      </tr>
	  </tbody></form>
    </table></td>
    <td width="217" valign="top">
    	 <{include file="./right.html"}> 
    </td>
  </tr>
</table>
  <!--foot-->
<{include file="./footer.html"}> 
<!--foot-->
</div>
</body>
</html>
